﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class WebUserControl_ControlReportThangGianChuc : System.Web.UI.UserControl
{
    ClassExecute.ClassExecute dt;
    string str = BCDataCenter.Configuration.CurrentConnectionString;
    static string error = "";
    protected void Page_Load(object sender, EventArgs e)
    {
       
        BindReport();
    }
    void BindReport()
    {
        try
        {
           
            dt = new ClassExecute.ClassExecute();
            DataTable db = dt.Get_Data_DataTable(str, ref error, "K_Get_Report_Promote", CommandType.StoredProcedure);
            if (db.Rows.Count > 0)
            {
                this.GridView1.DataSource = db;
                this.GridView1.DataBind();
            }
        }
        catch 
        {

        }
    }
}
